<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Model\User;
use App\Model\Business;
use App\Model\BusinessMember;
use App\Model\UserAction;

class EloquentController extends Controller
{
    //
    public function hasOneDefault() {
        $obj = UserAction::with('user')
            ->with('member')
            ->where('business_id',1)->find(1);
        dump($obj->toArray());
    }

    public function test() {

    }
}
